function simpan(){
	$('#formUjian').submit();
}

function waktuHabis(){
	alert("waktu habis ......");
	simpan();
	}		
function hampirHabis(periods){
	if($.countdown.periodsToSeconds(periods) == 60){
		$(this).css({color:"red"});
		}
	}
$(function(){	
	if(parseInt(timeLeft) <= 0 ){
		waktuHabis();
	}else{	
		var timer = $("#timer").countdown({
			until: timeLeft,
			compact:true,
			onExpiry:waktuHabis,
			onTick: hampirHabis
		});	
	}	
})

